package com.aaa.sso.feign;

import com.aaa.common.entity.User;
import com.aaa.common.vo.Result;
import com.aaa.sso.feign.factory.UserFeignFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: aaa-hospital-parent
 * @description:
 * @author: 闫克起
 * @create: 2024-05-20 17:03
 **/
@FeignClient(value = "hospital-system",fallbackFactory = UserFeignFactory.class)
public interface UserFeign {
    @GetMapping("/system/user/selectByName/{name}")
    public Result<User> selectByName(@PathVariable String name);
}
